package day08;

public class test_car {
    public static void main(String[] args) {
        Truck t = new Truck("北汽", "苏U12345", "中型");
        int truckRent = t.getRent(3);
        System.out.println(t.getBrand()+"\t"+t.getPlateNumber()+" 租金为:"+truckRent);

        Bus b = new Bus("字通", "苏A11111", 30);
        int busRent = b.getRent(10);
        System.out.println(b.getBrand()+"\t"+b.getPlateNumber()+" 租金为:"+busRent);
    }
}
